package org.railage.common.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * DTO for User entity
 * 
 * @author Cyril Fertikov
 * 
 */
public class UserDTO implements Serializable {
	private static final long serialVersionUID = -3832593549449619614L;

	private int id;
	private int role;
	private String login;
	private String password;
	private String name;
	private String surname;
	private Date birthday;

	public UserDTO() {

	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getRole() {
		return role;
	}

	public void setRole(int role) {
		this.role = role;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", role=" + role + ", login=" + login
				+ ", password=" + password + ", name=" + name + ", surname="
				+ surname + ", birthday=" + birthday + "]";
	}

}
